home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / ANTENNA / YAGIU112 / MAKEF~KA < prev    next >
Encoding:
Text File  |  1995-08-17  |  2.7 KB  |  76 lines

  1. # IMPORTANT *****************************************************  IMPORTANT
  2.  
  3. # Not all the source files are included. The following routines are missing:
  4. # comp_hack.c, lud_hack.c, lub_hack.c cis_hack.c mpr_hack.c
  5. # These are modified copies of source files printed in the book
  6. # 'Numerical Recipes in C', by Press et al, 2nd edition, Cambridge Uni. Press
  7. # (1992). You *must* get these source files and modify according to details
  8. # in the file README. Typing 'make' will *not* give you an executable!
  9.  
  10. # IMPORTANT *****************************************************  IMPORTANT
  11.  
  12. LIBS = -lm   
  13. CC= gcc     # I've made  CC a link to g++, so CC works at home and at work.
  14. CFLAGS=   -DANSI -DUNIX -DGCC -g
  15. all: optimise input yagi output first rantest mutual
  16.  
  17. YAGI-OBJECTS = yagi.o num_elem.o getfiles.o nrutil.o string.o read_dat.o \
  18. self.o mutual.o z.o cis_hack.o com_hack.o v.o lud_hack.o lub_hack.o header.o \
  19. write_co.o print_z.o version.o getopt.o u_yagi.o mpr_hack.o
  20.  
  21.  
  22. yagi: $(YAGI-OBJECTS) makefile  nr_hack.h com_hack.h
  23.     $(CC) $(CFLAGS) $(YAGI-OBJECTS) $(LIBS) -o yagi
  24.  
  25. INPUT-OBJECTS = input.o nrutil.o string.o write_ip.o num_elem.o version.o \
  26. u_input.o getopt.o 
  27.  
  28. input: $(INPUT-OBJECTS) makefile    com_hack.h nr_hack.h 
  29.     $(CC) $(CFLAGS) $(INPUT-OBJECTS) $(LIBS) -o  input
  30.  
  31.  
  32.  
  33. OUTPUT-OBJECTS = output.o nrutil.o read_hea.o string.o z_input.o vswr.o \
  34. refco.o com_hack.o pin.o gain.o write_ga.o version.o u_output.o getopt.o  \
  35. zbr_hack.o max_side.o 
  36.  
  37. output: $(OUTPUT-OBJECTS) makefile  
  38.     $(CC) $(CFLAGS) $(OUTPUT-OBJECTS) $(LIBS) -o  output
  39.  
  40. FIRST-OBJECTS = first.o nrutil.o write_ip.o string.o getopt.o u_first.o \
  41. version.o showfirs.o
  42. first: $(FIRST-OBJECTS) makefile   
  43.     $(CC) $(CFLAGS) $(FIRST-OBJECTS) $(LIBS) -o  first
  44.  
  45. OPTIMISE-OBJECTS = optimise.o string.o read_dat.o  nrutil.o num_elem.o  \
  46. version.o z.o lud_hack.o lub_hack.o gain.o self.o mutual.o pin.o com_hack.o \
  47. cis_hack.o v.o z_input.o randomis.o better.o write_ip.o refco.o vswr.o \
  48. copym.o perform.o getopt.o showopt.o solve.o print_z.o  ck_flags.o errormsg.o \
  49. max_gain.o dobetter.o gaussian.o sens.o fitness.o mpr_hack.o genetic.o \
  50. ga_lib.o random.o get_cmdl.o changpc.o max_side.o u_optimi.o opt_for.o \
  51. set_ps.o teststop.o meanperf.o p_pform.o substru.o end_stop.o
  52.  
  53. optimise: $(OPTIMISE-OBJECTS) makefile  
  54.     $(CC) $(CFLAGS) $(OPTIMISE-OBJECTS) $(LIBS) -o  optimise
  55.  
  56. RAND-OBJECTS=random.o rantest.o
  57.  
  58. rantest: $(RAND-OBJECTS) makefile
  59.     $(CC) $(CFLAGS) $(RAND-OBJECTS) $(LIBS) -o  rantest
  60.  
  61. MUTUAL-OBJECTS=test2.c cis_hack.o nrutil.o com_hack.o
  62.  
  63. mutual: $(MUTUAL-OBJECTS) makefile
  64.     $(CC) $(CFLAGS) $(MUTUAL-OBJECTS) $(LIBS) -o mutual
  65.  
  66. clean:
  67.     rm -f optimise 
  68.     rm -f input 
  69.     rm -f output 
  70.     rm -f yagi 
  71.     rm -f first 
  72.     rm -f rantest
  73.     rm -f *.o
  74.     rm -f *%
  75.     rm -f core
  76.